﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.freegiftsale.ui {
    import flash.display.*;
    import org.aswing.*;
    import Classes.*;
    import Display.aswingui.*;

    public class TimerPanel extends JPanel {

        private static var FONT_SIZE:int = 18;

        public function TimerPanel(_arg1:Date){
            super(new BorderLayout());
            this.makeBackground();
            this.createLabel();
            this.createTimerCells(_arg1);
        }
        private function makeBackground():void{
            var _local1:DisplayObject = (new EmbeddedArt.timer_bg() as DisplayObject);
            var _local2:MarginBackground = new MarginBackground(_local1, new Insets(0, 0, 0, 0));
            this.setBackgroundDecorator(_local2);
            ASwingHelper.setEasyBorder(this, 0, 80, 0, 80);
            this.setHeight(_local1.height);
        }
        private function createTimerCells(_arg1:Date):void{
            var _local2:TimerCellPanel = new TimerCellPanel(_arg1);
            ASwingHelper.setEasyBorder(_local2, 0, 0, 0, 10);
            this.append(_local2, BorderLayout.EAST);
        }
        private function createLabel():void{
            var _local1:JLabel = ASwingHelper.makeLabel(ZLoc.t("Dialogs", "FreeGiftSaleTimerMsg"), EmbeddedArt.DEFAULT_FONT_NAME_BOLD, TimerPanel.FONT_SIZE, EmbeddedArt.whiteTextColor, JLabel.LEFT);
            ASwingHelper.setEasyBorder(_local1, 0, 40);
            this.append(_local1, BorderLayout.WEST);
        }

    }
}//package Modules.freegiftsale.ui 
